const Iterator = require('../../dist/iterator/outside').default

const arr = [1, 2, 53, 42, 5, 13]

const iter = new Iterator({ arr })

while(!iter.isDone) {
  let item = iter.getItem();
  if (item % 3 == 0) {
    console.log('got it')
    console.log(item)
    iter.end();
  }
  iter.next();
}